package cn.lin.mapper;

import cn.lin.domain.Organization;
import cn.lin.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrganizationMapper {

    int add(@Param("pid") Integer pid,@Param("level") int level,@Param("name") String name) ;

    Integer findIdByName(String name) ;

    Organization findByName(String name) ;

    int insertList(List<User> userList) ;

    List<Organization> findAll() ;

}
